﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kelper.Domain.Models;
using Kelper.Domain.Data.Abstract;

namespace Kelper.Domain.Data
{
    public class FileConfirmation : IRegistrationConfirmation
    {
        public void SendConfirmation(User user)
        {
            using (StreamWriter sw = new StreamWriter(
                Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
                    "user registration.txt")))
                sw.Write("The user {0} was successfully registered.", user.Username);
        }
    }
}
